package com.example.demo.server3.template;


public enum ProtocolDefinition {
    //"请求连接"
    PROTOCOL_CMPP_CONNECT(0x00000001, CMPP_CONNECT.class),
    //"请求连接应答"
    PROTOCOL_CMPP_CONNECT_RESP(0x80000001, CMPP_CONNECT_RESP.class),
/*    // "终止连接"
    PROTOCOL_CMPP_TERMINATE(0x00000002, CMPP_TERMINATE.class),
    //"终止连接应答"
    PROTOCOL_CMPP_TERMINATE_RESP(0x80000002, CMPP_TERMINATE_RESP.class),*/
    //"提交短信"
    PROTOCOL_CMPP_SUBMIT(0x00000004, CMPP_SUBMIT.class),
    //"提交短信应答"
    PROTOCOL_CMPP_SUBMIT_RESP(0x80000004, CMPP_SUBMIT_RESP.class);
/*    //"短信下发"
    PROTOCOL_CMPP_DELIVER(0x00000005, CMPP_DELIVER.class),
    //"下发短信应答"
    PROTOCOL_CMPP_DELIVER_RESP(0x80000005, CMPP_DELIVER_RESP.class),
    //"激活测试"
    PROTOCOL_CMPP_ACTIVE_TEST(0x00000008, CMPP_ACTIVE_TEST.class),
    // "激活测试应答"
    PROTOCOL_CMPP_ACTIVE_TEST_RESP(0x80000008, CMPP_ACTIVE_TEST_RESP.class);*/

    private int cmd_id;
    private Class<?> implClass;

    public int getCmd_id() {
        return cmd_id;
    }


    ProtocolDefinition(int cmd_id, Class<?> impl) {
        this.cmd_id = cmd_id;
        this.implClass = impl;
    }
}
